package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.vo.DishPageVo;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

public interface DishService {
    /**增新菜品*/
    void insert(DishDTO dto);
/**根据分类id查询菜品*/
    List<Dish> selectByCategoryId(Long categoryId);
/**菜品分页查询*/
DishPageVo selectByPage(DishPageQueryDTO queryDTO);

/**删除菜品*/
    void deleteDish(List ids);

/**跟新数据*/
    void updateDish(DishDTO dto);
/**修改启售/禁售状态*/
    void updateStatus(Integer status,long id);
/**根据id查询*/
    DishVO selectById(Long id);
}
